<div id="content">
       <div ><img src="<?php echo $this->getSkinUrl()?>images/finance1.gif"/></div>
           <?php
    $dbConnect = Mage::getSingleton("core/resource")->getConnection("core_write"); 
    $result = $dbConnect->query("select * from country order by id asc");
    $rootPath = $_SERVER["DOCUMENT_ROOT"]."/app/design/frontend/default/seacroft/template/page/template/";
    include ($rootPath."calc.phtml");
    
    ?>
       <div class="height5 financebanner">
         <input name="submit" type="image" onClick="document.getElementById('popcalculator').style.display='block'"  src="<?php echo $this->getSkinUrl()?>images/calculator.gif" value="">
       </div>
       <div class="bannerrelative"><img src="<?php echo $this->getSkinUrl()?>images/finance2.gif" /></div>
       <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
       <?php //echo $this->getFormData()->getGostep1();?>

      
       <div >
        <img src="<?php echo $this->getSkinUrl()?>images/finance_step2.gif"/>
       </div>
 
    <div id="step2" class="step_block step_block_selected">
       <form method="post" id="form-validate2" name="form-validate2" action="<?php echo $this->getUrl(); ?>customer/account/step2Post">
             <div class=" margintop10 ">
			  <div class="bgtop"><img width="752" height="3" src="<?php echo $this->getSkinUrl()?>images/bgtop.gif"/></div>
		         <div class="financestep2">
				
		         <div class="tabletitle"><!--Your current address details--><img src="<?php echo $this->getSkinUrl()?>images/temp_current.gif"/></div>
		         <div class="contacttoday3 paddingtop_">

                
                <div class="formcontact2">
		          <div class="floatleft width120 paddingtop2" >Your Postcode:</div><div class="floatright ">
		            <div class="financestep2firstline">
		              <div class=" ">
		              <input name="postcode" id="postcode" type="text" value="<?php if (Mage::getSingleton('core/session')->getPostcard()) echo Mage::getSingleton('core/session')->getPostcard(); ?>"   class="required-entry input122"/>
                      <div class="find_address" >
		              <input type="button" onclick="pcaStartPopupHM32()" value=""class="inputt_address" name="findaddress" style="height:25px">
		              </div>
                      <SCRIPT LANGUAGE=JAVASCRIPT SRC="http://services.postcodeanywhere.co.uk/popups/javascript.aspx?account_code=kalde11112&license_key=hm32-aw42-bd58-ft68"></SCRIPT>
		              </div>
		              </div>
		          </div></div>
           
<!--
		          <div class="formcontact2">
		          <div class="floatleft width120 paddingtop2" >Your Postcode:</div><div class="floatright ">
		            <div class="financestep2firstline">
		              <div class=" ">
		              <input name="postcard" id="postcard" type="text" value="<?php if (Mage::getSingleton('core/session')->getPostcard()) echo Mage::getSingleton('core/session')->getPostcard(); ?>"   class="required-entry input122"/>
		              <div class="find_address" >
		              <input name="findaddress" type="image" src="<?php echo $this->getSkinUrl()?>images/findaddress.gif" value=""></div></div>
		              </div>
		          </div></div>
                  -->
		              <div class="formcontact2">
		                <div class="floatleft  width120 paddingtop2" >House Number:</div>
		                <div class="floatright width460">
		                <input type="text" name="housenumber" id="housenumber" value="<?php if (Mage::getSingleton('core/session')->getHousenumber()) echo Mage::getSingleton('core/session')->getHousenumber(); ?>"  class="required-entry input373"/>&nbsp;Or Name</div>
		            </div>
                    <!--
		                <div class="formcontact3">
		                <div class="floatleft width120 paddingtop2" >Company Name:</div>
		                <div class="floatright width460" >
		                  <blockquote>
		                    <p>
		                      <input type="text" name="company" id="company" value="<?php if (Mage::getSingleton('core/session')->getCompany()) echo Mage::getSingleton('core/session')->getCompany(); ?>"  class="required-entry input373"/>
		                    </p>
		                  </blockquote>
		                </div>
		               </div>
		                <div class="formcontact3">
		                <div class="floatleft width_ paddingtop2" >Building:</div>
		                <div class="floatright width460 ">
		                <input type="text" name="building" id="building" value="<?php if (Mage::getSingleton('core/session')->getBuilding()) echo Mage::getSingleton('core/session')->getBuilding(); ?>"   class="required-entry input373"/></div>
		               </div>
                       -->
		                <div class="formcontact2">
		                <div class="floatleft width120 paddingtop2" >Street:</div>
		                <div class="floatright width460 ">
		                <input type="text" name="street" id="street" value="<?php if (Mage::getSingleton('core/session')->getStreet()) echo Mage::getSingleton('core/session')->getStreet(); ?>"   class="required-entry input373"/></div>
		               </div>
		                
                        <div class="formcontact2">
		                <div class="floatleft width120 paddingtop2" >Town:</div>
		                <div class="floatright width460 ">
		                <input type="text" name="town" id="town" value="<?php if (Mage::getSingleton('core/session')->getTown()) echo Mage::getSingleton('core/session')->getTown(); ?>"   class="required-entry input373"/></div>
		               </div>
                       <div class="formcontact2">
                          <div class="floatleft width120 paddingtop2" >Country:</div>
                          <div class="floatright width460 ">
                            <div class="select2">
                              <div class="moniselect_step1 width122">
                                  <select name="country" >
                                  <?php if($result){
                                            $j=0;
                                            while($countryRow = $result->fetch(PDO::FETCH_ASSOC)){ 
                                            if($countryRow['name']=='United Kingdom & Northern Ireland'){ 
                                            	echo "<option value='".$countryRow['name']." ' selected='selected' >".$countryRow['name']."</option>" ;
                                            }else{                                          	
                                           
                                  ?>
                                    <option value="<?php echo $countryRow['name'];?>" ><?php echo $countryRow['name'];?></option>
                                    <?php   }                                  
                                            $j++;
                                            }
                                         }
                                    ?>
                                  </select>
                                </div>
                            </div>
                          </div>
                        </div>
                        <!--
		               <div class="formcontact2">
		                <div class="floatleft width120 paddingtop2" >Country:</div>
		                <div class="floatright width460 ">
		                  <input type="text" name="country" id="country" value="<?php if (Mage::getSingleton('core/session')->getCountry()) echo Mage::getSingleton('core/session')->getCountry(); ?>"   class="required-entry input373"/>
		                </div>
                       </div> -->
		            <div class="formcontact2">
		                <div class="floatleft width120 paddingtop2" >Time At Address:</div>
		                <div class="floatright width460 "><span class="positionabsolute">
		                 <!-- <input name="timeat1" id="timeat1" value="<?php /*?><?php if (Mage::getSingleton('core/session')->getTimeat1()) echo Mage::getSingleton('core/session')->getTimeat1(); ?><?php */?>"   class="required-entry input60s" type="text" value="0" />-->
                          <div class="select2">
                    <div class="moniselect_step2 width60">
                      <input type="text"   class="required-entry input_W_H60" name="timeat1" id="timeat112" value="1"/>
                      <div  class="moniselect_content" onclick="showoption_new('option',12)" onmouseout="document.getElementById('option12').style.display='none'"><img  class="imgage" usemap="#SystemMap" src="<?php echo $this->getSkinUrl()?>images/input60s.gif"> </div>
                      <dl class="width60" id="option12" onmouseover="this.style.display='block'"  onmouseout="this.style.display='none'">
                        <?php
                            for($i=1;$i<=50;$i++){
                         ?>
                        <dt class="last_dt" onclick="sendvalue_new(this,'timeat1',12,'option')"><?php echo $i;?></dt>
                        <?php } ?>
                      </dl>
                    </div>
                  
                  
                  </div><span  class="s_select_text">&nbsp;&nbsp;Years&nbsp;&nbsp;</span>               
		                  <!--<input name="timeat2" id="timeat2" value="<?php /*?><?php if (Mage::getSingleton('core/session')->getTimeat2()) echo Mage::getSingleton('core/session')->getTimeat2(); ?><?php */?>"   class="required-entry input60s" type="text" value="0" />-->
                            <div class="select2">
                  <div class="moniselect_step2 width60">
                      <input type="text" class="required-entry input_W_H60" name="timeat2" id="timeat213" value="1"/>
                      <div  class="moniselect_content" onclick="showoption_new('option',13)" onmouseout="document.getElementById('option13').style.display='none'"><img  class="imgage" usemap="#SystemMap" src="<?php echo $this->getSkinUrl()?>images/input60s.gif"> </div>
                      <dl class="width60" id="option13" onmouseover="this.style.display='block'"  onmouseout="this.style.display='none'">
                      <?php
                            for($i=1;$i<=12;$i++){
                      ?>
                        <dt class="last_dt" onclick="sendvalue_new(this,'timeat2',13,'option')"><?php echo $i;?></dt>
                      <?php } ?>
                      </dl>
                    </div>
                  
                  
                  </div>
		                <span class="s_select_text">&nbsp;&nbsp;Months&nbsp;&nbsp;</span>
		            </span></div></div>
		            <!-- <div class=" height73 "></div>-->
		         </div>
		         <div class="clearfloat"></div>
		     </div>
			 <div class="bgtop"><img width="752" height="3" src="<?php echo $this->getSkinUrl()?>images/bgbottom.gif"/></div>
		     </div>
		     <div class=" margintop10 ">
			 <div class="bgtop"><img width="752" height="3" src="<?php echo $this->getSkinUrl()?>images/bgtop.gif"/></div>
         <div class="financestep2form">
           <div class="floatright width150 margintop_3 ">
          	 <input name="submit" type="image" src="<?php echo $this->getSkinUrl()?>images/continue3.gif" value="" onsubmit=" document.getElementById('postcard').value=document.getElementById('postcode').value;">
           </div>
           <div class="floatleft width150 margintop_3 marginleft_11">
			<a href="<?php echo $this->getUrl(); ?>customer/account/step1/"><img width="147" height="26" src="<?php echo $this->getSkinUrl()?>images/preview1.gif"/></a>
           </div>
         </div>
		 <div class="bgtop"><img width="752" height="3" src="<?php echo $this->getSkinUrl()?>images/bgbottom.gif"/></div>
		 </div>
         </form>
         </div>
         
      	<div class="height5"></div>
       	<div class="content_ad"><img src="<?php echo $this->getSkinUrl()?>images/line2.gif"/>
         <img src="<?php echo $this->getSkinUrl()?>images/contactad.gif"/>
      	</div>
       
</div>
    	<script type="text/javascript">
	    var dataForm2 = new VarienForm('form-validate2', true);
        document.getElementById("pcaButtonHM32").style.display ="none";
</script>
